﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using YmtAuth.Web.Handler;

namespace YmtAuth.Web
{
    public class YmtAuthRoute
    {
        public static void RegisterRoutes()
        {
            RouteTable.Routes.Add("loginauth"
                , new Route("login/auth/{ukey}/{pas}/{rtype}"
                , new RouteValueDictionary(new { ukey = "a", pas = "b", rtype = "cs" })
                , new GenericHandlerRoute<LoginAuth>("~/login/auth")));
            RouteTable.Routes.Add(new GenericHandlerRoute<NewUserNotice>("newusernotice/handle"));
            RouteTable.Routes.Add(new GenericHandlerRoute<F5>("f5"));
            RouteTable.Routes.Add(new GenericHandlerRoute<warmupHandler>("warmup"));
            //RouteTable.Routes.Add(new GenericHandlerRoute<LoginAuth>("login/auth"));
        }
    }
}